<%@ page import="admin.entity.Adenty" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="admin.dao.Addao" %><%--
  Created by IntelliJ IDEA.
  User: awake
  Date: 2023/12/28
  Time: 9:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>管理员信息页面</title>
</head>
<%
    ArrayList<Adenty>adenties=new Addao().getAdInfo();
    if (adenties==null){
        adenties=new ArrayList<>();
    }
%>
<body>
<table border="1" cellspacing="0">
    <tr>
        <td>账号</td>
        <td>密码</td>
        <td>姓名</td>
        <td>性别</td>
        <td>电话</td>
    </tr>

    <%
        for (Adenty adenty:adenties){
    %>
    <tr>
        <td><%=adenty.getCid()%></td>
        <td><%=adenty.getCpwd()%></td>
        <td><%=adenty.getCname()%></td>
        <td><%=adenty.getCsex()%></td>
        <td><%=adenty.getCcall()%></td>
    </tr>
<%
    }
%>
</table>
<a href="Addadinfo.jsp"><input type="submit" value="添加"></a>
<a href="deladinfo.jsp"><input type="submit" value="删除"></a>
<a href="upadinfo.jsp"><input type="submit" value="修改"></a>
<a href="seladinfo.jsp"><input type="submit" value="查询"></a>
<a href="Oppage.jsp"><input type="submit" value="返回"></a>
</body>
</html>
